<?php get_header(); ?>
<?php get_template_part('navi'); ?>

<div id="main">

<?php get_template_part('top-widgets'); ?>

<?php get_sidebar(); ?>

<div class="catdata">
<h1 class="categorytitle">
<?php
/*get archives header*/
if ( is_day() ) { $this_header = "Daily archives for " . get_the_date(); }
else if ( is_month() ){ $this_header = "Monthly archives for " . get_the_date('F, Y'); }
else if ( is_year() ){ $this_header = "Yearly archives for " . get_the_date('Y'); }
else { $this_header = "Archives"; }
echo $this_header;
?>
</h1>
		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>

         
        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <div class="thumb"><?php the_post_thumbnail(array('300','200')); ?></div>

        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
          <p><?php the_excerpt(); ?></p>

            <div class="entry">   
 
                <p class="postmetadata">
                 Posted on <?php echo get_the_date(); ?> under <?php the_category(', ') ?> by
              
                <?php the_author_posts_link(); ?> with 
                <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
                <?php edit_post_link('Edit', ' &#124; ', ''); ?>
                </p>
 
            </div>
        </div> <!--end post -->
        <?php endwhile; ?>
       <?php endif; ?>
     
     <?php get_template_part('pagination'); ?>

          </div> <!--catdata-->        
     </div> <!--end content-->   


</div> <!--end main-->
<?php get_footer(); ?>
